<script type="text/javascript">
$(function(){
	$.fn.dataGridOptions.formSubFun("#form",'/modules/tpp/tppMerchantLog/baofoo/tppTransfer.html');
})	
</script>
<style>
  table{border:1px solid #ccc;border-collapse:0;border-spacing: 0px; padding:0;margin:0;}
  tr,td{padding:0; margin:0; text-align:center;}
  td{border:1px solid #ccc;}
</style>
<form id="form"  method="post" onsubmit="checkMoneyFun();">
<div class="popForm" style="padding-top:0;">
		<div class="clearfix account" style="padding:20px 0" >
	            <table style="width:665px;" border="0" cellpadding="3" cellspacing="1" width="100%" align="center">
	               <tr class="datagrid-header-row"><td field="id" class="">商户名称</td><#-- <td field="id" class="">账户余额</td> --><td field="id" class="">可用余额(元)</td></tr>
	                  <tr><td>${web_name!}</td><#-- <td>${totalMoney!}</td> --><td>${userMoney!}</td></tr>
	            </table>
	       </div>
		<div class="clearfix account" style="padding:20px 0" >
	            <label for="">付款账户：</label>
	             <input type="radio" value="${web_name!}" name="account" checked="checked"> ${web_name!}
	       </div>
	       <div class="clearfix payAccount" style="padding:20px 0">
	            <label for="">收款账户：</label>
	            <input type="text" name="userName" id="userName" autocomplete="off" class="easyui-validatebox adminUserTxt" data-options="required: true" maxlength="20" style="width:130px;"/><i>*</i>
				<input type="button" value="选择" onclick="showUser()" style="margin-left:10px;width:50px;line-height:30px;border:none;font-size:14px;color:#fff;background-color: #4b93cf;font-size: 16px;text-align: center;cursor: pointer;">
	       </div>
		<div class="other clearfix" style="padding:20px 0">
            <label for="">转账金额：</label><input type="text" name="money" id="money" autocomplete="off" class="easyui-validatebox adminUserTxt" data-options="required: true" maxlength="20" style="width:130px;"/><i>*商户资金转账到用户新浪账户</i> 	
        </div>
        <div class="other clearfix" style="padding:20px 0">
            <label for="">是否增加平台资金并生成资金记录：</label><input type="checkbox" name="isAccountLog" id="isAccountLog" autocomplete="off" value="0" onclick="this.value=(this.value==0)?1:0" />
            <a href="javascript:;" title="资金记录模板:'系统转账成功，流水号xxx，入帐xxx.xx元。'" >？</a>
        </div>
</div>
<script type="text/javascript">
//浏览用户
var showUser = function() {
	dialog =  parent.sy.modalDialog({
		title : '选择用户',
		width:520,
		height:450,
		url : '/modules/user/user/user/userListPage.html',
		buttons : [{
			text : '确定',
			handler : function() {
				dialog.find('iframe').get(0).contentWindow.getSelected(dialog, $('#userName') ,$('#userType'));
				$('#userName').focus();
			}
		}]
	});
};
</script>
</form>

